#ifndef __UTIL_H
#define __UTIL_H

#include <QLabel>
#include <QPropertyAnimation>
#include <QWidget>


using AnimFinishFunc = std::function<void(void)>;

void set_window_card(QWidget *win, qreal blur = 10);
void set_window_custom(QWidget *win);
QPropertyAnimation *run_scale_anim(QWidget *win, int msec, bool to_max);
void set_lb_img(QLabel *label, const QString &path);
QPropertyAnimation *run_scale_anim_close(QWidget *win, int msec);

#endif
